package com.yycx.module.bus.provider.service;

import com.yycx.common.mybatis.model.ResultBody;
import com.yycx.module.bus.client.entity.BusSupplierBank;
import com.yycx.common.mybatis.base.service.IBaseService;

import java.io.Serializable;

/**
 * 供应商银行账户 接口
 *
 * @author flyme
 * @date 2020-08-01
 */
public interface BusSupplierBankService extends IBaseService<BusSupplierBank> {
    /**
     * 删除供货商银行账户
     *
     * @param supplierId
     * @return
     */
    ResultBody deleteBySupplierId(Serializable supplierId);

    /**
     * 查询供货商开户行
     * @param supplierId
     * @param bankType
     * @return
     */
    ResultBody getBySupplierIdAndBankType(Long supplierId, Integer bankType);

    /**
     * 查询垫付款账户信息
     * @param bankId
     * @return
     */
    ResultBody getByBankId(Long bankId);
}
